<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>js中运算符的使用</title>
</head>
<body>

<script type="text/javascript">
    /*
    * js中的运算符
    * 分类：
    *   1. 数学运算   +   -  *  /  %
    *   2. 逻辑运算
    *       &&    and  短路与
    *       ||    or
    *       !     not
    *   3. 比较运算
    *      >  <  >=  <=  !=  ==  ===  !==
    *   4.赋值运算
    *     =   += -=  *=  /=  %=  ++  --
    * */

    var num1 = 2
    var num2 = '2'

    var result = num1 > num2
    console.log(result)

    result = num1 < num2
    console.log(result)

    result = num1 >= num2
    console.log(result)

    result = num1 <= num2
    console.log(result)
    //  等于
    result = num1 == num2
    console.log(result)
    // 绝对等于   值  类型
    result = num1 === num2
    console.log(result)

    result = num1 != num2
    console.log(result)

    result = num1 !== num2
    console.log(result)


</script>
</body>
</html>